package cloud.xiangyixiang.www.spring.boot.java.basics.pojo.bo;

/**
 * <p>
 * TeacherLocalInnerClass
 * </p>
 *
 * @author weixin
 * @date 2023/9/16 16:05
 */
public class TeacherLocalInnerClass {

    /**
     * 教师ID
     */
    private Integer id;

    /**
     * 教师名称
     */
    private String name;

    class Student {

        public TeacherLocalInnerClass getWoman(){
            class Girl extends TeacherLocalInnerClass {   //局部内部类
                final int age = 0;
            }
            return new Girl();
        }
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
